package com.experian.core.sharding.sqlsessiontemplate;

public abstract class CustomerContextHolder {
	public static final String DB1 = "db1";
	public static final String DB2 = "db2";

	private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();

	public static void setContextType(String contextType) {
		contextHolder.set(contextType);
	}

	public static String getContextType() {
		return contextHolder.get();
	}

	public static void clearContextType() {
		contextHolder.remove();
	}
}